/**
 * TestUtilsFunctions.java
 * ************************** 
 * @date May 12, 2011
 * @author Michele Tamburini
 * 
 * **************************
 */
package JUnitTests;

import gossipServices.basic.nodeDescriptors.ConcreteNodeDescriptor;
import gossipServices.basic.nodeDescriptors.NodeDescriptor;

import java.util.ArrayDeque;
import java.util.Vector;

/**
 * Description: 
 *
 */
public class TestUtilFunctions {

	/**
	 * 
	 */
	public TestUtilFunctions() {
		super();
	}

	protected Vector<NodeDescriptor> buildVector(String []names) {
		Vector<NodeDescriptor> vec = new Vector<NodeDescriptor>(names.length);
		for(String s: names)
			vec.add(new ConcreteNodeDescriptor(s));
		return vec;
		
	}
	
	protected ArrayDeque<NodeDescriptor> buildArrayDeque(String []names){
		ArrayDeque<NodeDescriptor> queue = new ArrayDeque<NodeDescriptor>(names.length);
		for(String s: names)
			queue.add(new ConcreteNodeDescriptor(s));
		return queue;
		
	}

	protected void print(Object o) {
		System.out.println(o);
	}

}